<html lang="zh-CN">
<%@ page language="java" import="java.util.*"   pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath();   
%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1"> 
    <title>2i接口文档</title>
    <meta content="2i接口文档" name="keywords" />
    <meta content="2i接口文档" name="description" />
    <style>
    
    
        ul,li{
            
            
            list-style: none;
        }
        li{
            
            margin-top:80px;
        }
        h2{
            
            text-align: center;
            
            
        }
        table{
            
            
            border-collapse: collapse;
            border-spacing: 0;
            width: 90%;
            margin: auto;
        }
        table td,th{
            height:30px;
            line-height: 30px;
            padding-left: 20px;
            
            border:1px solid #999;
        }
    
    </style>
</head>

<body>
   
    <h2>筛查接口详情</h2>

    <ul> 
        <c:forEach items="${api_info}" var="api" >
        <li>
            <table>
                <thead>
                    <th style="font-size:24px;color: red" colspan="2">${api.name}</th>
                </thead>
                <tr><td width="20%">参数</td>
                    
                    <td>参数取值</td></tr>
               
                <tr>
                    <td width="20%">接口路径</td>
                     
                    <td ><%=basePath%>${api.url}</td>
                </tr>
                <tr>
                    <td width="20%">尾部参数</td>
                     
                    <td >${api.params}</td>
                </tr>
                 <tr>
                    <td width="20%">示例</td>
                     
                    <td ><a href="<%=basePath%>${api.url}?${api.params}"><%=basePath%>${api.url}?${api.params}</a></td>
                </tr>
                 <tr style="background: #ddd;">
                    <td style="font-weight:bolder;font-size:16px;text-align:center" colspan="2">
                      参数说明
                     </td>
                  
                     
                   
                </tr>
                <c:forEach items="${api.param_info}" var="para" varStatus="Index" >
                <tr >
                    <td width="30%">
                        ${para.key}</td>
                  
                     
                    <td> ${para.value}</td>
                </tr>
                </c:forEach>
                 <tr>
                    <td width="20%">参数说明</td>
                     
                     <td>  <c:forEach items="${api.comment_info}" var="comment" varStatus="Index" >${comment.key}【${comment.value}】,</c:forEach> </td>
                </tr>
            </table>
        </li>
        </c:forEach>
        
    </ul>
</body>

</html>